docker-compose down
docker rmi instances-configuration:1.0 instances-consumer:1.0 instances-user:1.0
echo "正在构建服务镜像...$1"
docker build -f instances-configuration/Dockerfile -t instances-configuration:1.0 --build-arg wannengip="$1" .
docker build -f instances-consumer/Dockerfile -t instances-consumer:1.0 --build-arg wannengip="$1" .
docker build -f instances-user/Dockerfile -t instances-user:1.0 --build-arg wannengip="$1" .

docker-compose up -d

read -p "服务构建已完成，按回车关闭..."